package wox.lonice.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import wox.lonice.dto.Result;
import wox.lonice.service.ProxyIpService;

@Controller
public class ProxyController {

    @Autowired
    private ProxyIpService proxyIpService;

    @GetMapping("/proxy/getIp")
    @ResponseBody
    public Result list(){
        proxyIpService.getProxyIp();
        return new Result(true, "ok");
    }
}
